package cn.maxhou.service;

import cn.maxhou.entity.SysUser;
import cn.maxhou.util.Page;

public interface SysUserService {
    /**定义登录业务方法*/
    public SysUser login(String account,String password);
    /**多条件查询用户分页数据*/
    public Page<SysUser>findPage(SysUser entity,Integer pageNo,Integer pageSize) throws Exception;
    /**保存或修改用户信息*/
    public boolean saveOrUpdate(SysUser entity) throws Exception;

    /**根据ID获取用户详细信息*/
    public SysUser findById(Long id) throws Exception;
    public int deleteById(Long id)throws Exception;

    public SysUser findByAccount(String account)throws Exception;

    public int changePassword(SysUser sysUser);
}
